﻿package com.cilico.single.components;

/**
 * Container for a collection of channels.
 */
public final class Collection {
	private final String title_;
	// A collection contains all channels whose index is within [_start, _end) (right-open range).
	int start_;
	int end_;

	public Collection(String workspace) {
		title_ = workspace;
	}

	/**
	 * Index into channel list in ChannelRepository.
	 */
	public void setChannelIndexRange(int startIdx, int endIdx) {
		start_ = startIdx;
		end_ = endIdx;
	}

	public String title() {
		return title_;
	}

}
